﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model.EF;
using Model;

public partial class System_Menu_MenuEdit : System.Web.UI.Page
{
    public SystemMenu model = new SystemMenu();

    public string rel = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["id"] != null)
            {
                if (Request.QueryString["id"].ToString() != "")
                {
                    IRepository<SystemMenu> MenuRepository = new EntityRepository<SystemMenu>();

                    model = MenuRepository.FindById(int.Parse(Request.QueryString["id"].ToString()));

                    rel = Request.QueryString["rel"].ToString();
                }
            }
        }
    }
}